Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Programmer's Guide / Part 2 - Programming
Chapter 10 - Extending OpenDoc


The Settings Extension

The Part Info dialog box (see "Selection Info"Info properties are those properties in a part's storage unit, separate from the part's contents property, that are intended to be visible to the user. They include properties such as creation date and modification date (which cannot be changed by the user) as well as name and part kind (which can be changed by the user).

The Part Info dialog box provides access to only the standard Info properties that all OpenDoc parts have. To define and allow access to Info properties specific to your part editor, you can create a settings extension to display your own Settings dialog box.

If you implement a settings extension, a button with the title "Settings..." appears in the lower-left corner of the Part Info dialog box. When the user clicks this button, OpenDoc calls your settings extension's ShowSettings method. This call gives you a chance to display your Settings dialog box so
that the user can edit your editor-specific settings.

Your settings extension should be implemented as a subclass of the ODSettingsExtension class. ODSettingsExtension is itself a subclass
of ODExtension.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
16 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help